//
//  TeamSearchImageCell.swift
//  NETeamUIKit
//
//  Created by Laura on 2024/7/30.
//

import UIKit

@objcMembers
open class TeamSearchImageCell: NEBaseTeamSearchImageCell {
  override open func setupUI() {
    super.setupUI()
      
      NSLayoutConstraint.activate([
        imageView.topAnchor.constraint(equalTo: self.topAnchor),
        imageView.leftAnchor.constraint(equalTo: self.leftAnchor),
        imageView.widthAnchor.constraint(equalToConstant: (UIScreen.main.bounds.size.width - 33) / 4),
        imageView.heightAnchor.constraint(equalToConstant: (UIScreen.main.bounds.size.width - 33) / 4),
      ])
      
      NSLayoutConstraint.activate([
        collectionStateView.centerXAnchor.constraint(equalTo: imageView.centerXAnchor),
        collectionStateView.centerYAnchor.constraint(equalTo: imageView.centerYAnchor),
        collectionStateView.heightAnchor.constraint(equalToConstant: 60),
        collectionStateView.widthAnchor.constraint(equalToConstant: 60),
      ])
  }
}
